package com.lin.service.impl;
import com.lin.entity.User;
import com.lin.mapper.UserMapper;
import com.lin.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    UserMapper userMapper;



    @Override
    public List<User> listUser() {
        return userMapper.listUser();
    }


    @Override
    public User selectUserById(Integer id) {
        return userMapper.selectUserById(id);
    }


    @Override
    public int insertUser(User user) {
        return userMapper.insertUser(user);
    }


    @Override
    public int deleteUserById(Integer id) {
        return userMapper.deleteUserById(id);
    }


    @Override
    public int updateUser(User user) {
        return userMapper.updateUser(user);
    }






}